﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class TNPC
    {
        enum TaskType
        {
            送信NCP,
            杀怪NPC,
            采集NPC
        }
        class TaskNPC : NPC
        {
            private string taskInfo;
            private TaskType type1;
            public string TaskInfo
            {
                get { return this.taskInfo; }
                set { this.taskInfo = value; }
            }
            public TaskType Type1
            {
                get { return this.type1; }
                set { this.type1 = value; }
            }
            public override void SayHello()
            {
                Console.WriteLine("诚既勇兮又以武，终刚强兮不可凌。身既死兮神以灵，魂魄毅兮为鬼雄");
                Console.WriteLine("我叫：{0}，我是{1}中的{2}，任务：{3}", base.Name, base.NpcType, this.type1, this.taskInfo);
            }
            public TaskNPC() { }
            public TaskNPC(string name, NPCtype npctype, TaskType type1, string taskInfo) : base(name, npctype)
            {
                this.Type1 = type1;
                this.TaskInfo = taskInfo;
            }
        }
    }
}
